home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 January / enter-2004-01.iso / files / maxima-5.9.0.exe / {app} / info / maxima.info-10 < prev    next >
Encoding:
Text File  |  2003-02-09  |  23.5 KB  |  580 lines

  1. This is maxima.info, produced by makeinfo version 4.1 from maxima.texi.
  2.  
  3.    This is a Texinfo Maxima Manual
  4.  
  5.    Copyright 1994,2001 William F. Schelter
  6.  
  7. START-INFO-DIR-ENTRY
  8. * Maxima: (maxima).     A computer algebra system.
  9. END-INFO-DIR-ENTRY
  10.  
  11. 
  12. File: maxima.info,  Node: Introduction to Series,  Next: Definitions for Series,  Prev: Series,  Up: Series
  13.  
  14. Introduction to Series
  15. ======================
  16.  
  17.    Maxima contains functions `Taylor' and `Powerseries' for finding the
  18. series of differentiable functions.   It also has tools such as `Nusum'
  19. capable of finding the closed form of some series.   Operations such as
  20. addition and multiplication work as usual on series. This section
  21. presents the various global various variables which control the
  22. expansion.
  23.  
  24. 
  25. File: maxima.info,  Node: Definitions for Series,  Prev: Introduction to Series,  Up: Series
  26.  
  27. Definitions for Series
  28. ======================
  29.  
  30.  - Variable: CAUCHYSUM
  31.      default: [FALSE] - When multiplying together sums with INF as
  32.      their upper limit, if SUMEXPAND is TRUE and CAUCHYSUM is set to
  33.      TRUE then the Cauchy product will be used rather than the usual
  34.      product.  In the Cauchy product the index of the inner summation
  35.      is a function of the index of the outer one rather than varying
  36.      independently.  That is: SUM(F(I),I,0,INF)*SUM(G(J),J,0,INF)
  37.      becomes SUM(SUM(F(I)*G(J-I),I,0,J),J,0,INF)
  38.  
  39.  
  40.  - Function: DEFTAYLOR (function, exp)
  41.      allows the user to define the Taylor series (about 0) of an
  42.      arbitrary function of one variable as exp which may be a
  43.      polynomial in that variable or which may be given implicitly as a
  44.      power series using the SUM function.      In order to display the
  45.      information given to DEFTAYLOR one can use POWERSERIES(F(X),X,0).
  46.      (see below).
  47.           (C1) DEFTAYLOR(F(X),X**2+SUM(X**I/(2**I*I!**2),
  48.                   I,4,INF));
  49.           (D1)                          [F]
  50.           (C2) TAYLOR(%E**SQRT(F(X)),X,0,4);
  51.                                2         3          4
  52.                               X    3073 X    12817 X
  53.           (D2)/R/     1 + X + -- + ------- + -------- +  . . .
  54.                               2     18432     307200
  55.  
  56.  - Variable: MAXTAYORDER
  57.      default: [TRUE] - if TRUE, then during algebraic manipulation of
  58.      (truncated) Taylor series, TAYLOR will try to retain as many terms
  59.      as are certain to be correct.
  60.  
  61.  
  62.  - Function: NICEINDICES (expr)
  63.      will take the expression and change all the indices of sums and
  64.      products to something easily understandable. It makes each index
  65.      it can "I" , unless "I" is in the internal expression, in which
  66.      case it sequentially tries J,K,L,M,N,I0,I1,I2,I3,I4,...  until it
  67.      finds a legal index.
  68.  
  69.  
  70.  - Variable: NICEINDICESPREF
  71.      default: [I,J,K,L,M,N] - the list which NICEINDICES uses to find
  72.      indices for sums and products.  This allows the user to set the
  73.      order of preference of how NICEINDICES finds the "nice indices".
  74.      E.g.  NICEINDICESPREF:[Q,R,S,T,INDEX]$.  Then if NICEINDICES finds
  75.      that it cannot use any of these as indices in a particular
  76.      summation, it uses the first as a base to try and tack on numbers.
  77.      Here, if the list is exhausted, Q0, then Q1, etc, will be tried.
  78.  
  79.  
  80.  - Function: NUSUM (exp,var,low,high)
  81.      performs indefinite summation of exp with respect to var using a
  82.      decision procedure due to R.W. Gosper.  exp and the potential
  83.      answer must be expressible as products of nth powers, factorials,
  84.      binomials, and rational functions.  The terms "definite" and
  85.      "indefinite summation" are used analogously to "definite" and
  86.      "indefinite integration".  To sum indefinitely means to give a
  87.      closed form for the sum over intervals of variable length, not
  88.      just e.g. 0 to inf.  Thus, since there is no formula for the
  89.      general partial sum of the binomial series, NUSUM can't do it.
  90.  
  91.  
  92.  - Function: PADE (taylor-series,num-deg-bound,denom-deg-bound)
  93.      returns a list of all rational functions which have the given
  94.      taylor-series expansion where the sum of the degrees of the
  95.      numerator and the denominator is less than or equal to the
  96.      truncation level of the power series, i.e.  are "best"
  97.      approximants, and which additionally satisfy the specified degree
  98.      bounds.  Its first argument must be a univariate taylor-series;
  99.      the second and third are positive integers specifying degree
  100.      bounds on the numerator and denominator.  PADE's first argument
  101.      can also be a Laurent series, and the degree bounds can be INF
  102.      which causes all rational functions whose total degree is less
  103.      than or equal to the length of the power series to be returned.
  104.      Total degree is num-degree + denom-degree.  Length of a power
  105.      series is "truncation level" + 1 - minimum(0,"order of series").
  106.  
  107.           (C15) ff:taylor(1+x+x^2+x^3,x,0,3);
  108.                                                2    3
  109.           (D15)/T/                    1 + X + X  + X  + . . .
  110.           (C16) pade(ff,1,1);
  111.                                                   1
  112.           (D16)                              [- -----]
  113.                                                 X - 1
  114.           (c1) ff:taylor(-(83787*X^10-45552*X^9-187296*X^8
  115.                             +387072*X^7+86016*X^6-1507328*X^5
  116.                             +1966080*X^4+4194304*X^3-25165824*X^2
  117.                             +67108864*X-134217728)
  118.                  /134217728,x,0,10);
  119.           (C25) PADE(ff,4,4);
  120.           (D25) []
  121.      There is no rational function of degree 4 numerator/denominator,
  122.      with this power series expansion.  You must in general have degree
  123.      of the numerator and degree of the denominator adding up to at
  124.      least the degree of the power series, in order to have enough
  125.      unknown coefficients to solve.
  126.           (C26) PADE(ff,5,5);
  127.           (D26) [-(520256329*X^5-96719020632*X^4-489651410240*X^3
  128.                      -1619100813312*X^2 -2176885157888*X-2386516803584)
  129.               /(47041365435*X^5+381702613848*X^4+1360678489152*X^3
  130.                           +2856700692480*X^2
  131.                       +3370143559680*X+2386516803584)]
  132.  
  133.  
  134.  - Variable: POWERDISP
  135.      default: [FALSE] - if TRUE will cause sums to be displayed with
  136.      their terms in the reverse order.  Thus polynomials would display
  137.      as truncated power series, i.e., with the lowest power first.
  138.  
  139.  
  140.  - Function: POWERSERIES (exp, var, pt)
  141.      generates the general form of the power series expansion for exp
  142.      in the variable var about the point pt (which may be INF for
  143.      infinity).  If POWERSERIES is unable to expand exp, the TAYLOR
  144.      function may give the first several terms of the series.
  145.      VERBOSE[FALSE] - if TRUE will cause comments about the progress of
  146.      POWERSERIES to be printed as the execution of it proceeds.
  147.           (C1) VERBOSE:TRUE$
  148.           (C2) POWERSERIES(LOG(SIN(X)/X),X,0);
  149.           Can't expand
  150.                                            LOG(SIN(X))
  151.           So we'll try again after applying the rule:
  152.                                                   d
  153.                                                 / -- (SIN(X))
  154.                                                 [ dX
  155.                                   LOG(SIN(X)) = I ----------- dX
  156.                                                 ]   SIN(X)
  157.                                                 /
  158.           In the first simplification we have returned:
  159.                                        /
  160.                                        [
  161.                                        I COT(X) dX - LOG(X)
  162.                                        ]
  163.                                        /
  164.                               INF
  165.                               ====        I1  2 I1             2 I1
  166.                               \      (- 1)   2     BERN(2 I1) X
  167.                                >     ------------------------------
  168.                               /                I1 (2 I1)!
  169.                               ====
  170.                               I1 = 1
  171.           (D2)                -------------------------------------
  172.                                                 2
  173.  
  174.  - Variable: PSEXPAND
  175.      default: [FALSE] - if TRUE will cause extended rational function
  176.      expressions to display fully expanded.  (RATEXPAND will also cause
  177.      this.)  If FALSE, multivariate expressions will be displayed just
  178.      as in the rational function package.  If PSEXPAND:MULTI, then
  179.      terms with the same total degree in the variables are grouped
  180.      together.
  181.  
  182.  
  183.  - Function: REVERT (expression,variable)
  184.      Does reversion of Taylor Series.  "Variable" is the variable the
  185.      original Taylor expansion is in.  Do LOAD(REVERT) to access this
  186.      function.  Try
  187.  
  188.           REVERT2(expression,variable,hipower)
  189.       also.  REVERT only works on expansions around 0.
  190.  
  191.  
  192.  - Function: SRRAT (exp)
  193.      this command has been renamed to TAYTORAT.
  194.  
  195.  
  196.  - Function: TAYLOR (exp, var, pt, pow)
  197.      expands the expression exp in a truncated Taylor series (or
  198.      Laurent series, if required) in the variable var around the point
  199.      pt.  The terms through (var-pt)**pow are generated.  If exp is of
  200.      the form f(var)/g(var) and g(var) has no terms up to degree pow
  201.      then TAYLOR will try to expand g(var) up to degree 2*pow.  If
  202.      there are still no non-zero terms TAYLOR will keep doubling the
  203.      degree of the expansion of g(var) until reaching pow*2**n where n
  204.      is the value of the variable TAYLORDEPTH[3].  If
  205.      MAXTAYORDER[FALSE] is set to TRUE, then during algebraic
  206.      manipulation of (truncated) Taylor series, TAYLOR will try to
  207.      retain as many terms as are certain to be correct.  Do
  208.      EXAMPLE(TAYLOR); for examples.
  209.      TAYLOR(exp,[var1,pt1,ord1],[var2,pt2,ord2],...)  returns a
  210.      truncated power series in the variables vari about the points pti,
  211.      truncated at ordi.  PSEXPAND[FALSE] if TRUE will cause extended
  212.      rational function expressions to display fully expanded.
  213.      (RATEXPAND will also cause this.) If FALSE, multivariate
  214.      expressions will be displayed just as in the rational function
  215.      package.  If PSEXPAND:MULTI, then terms with the same total degree
  216.      in the variables are grouped together.  TAYLOR(exp, [var1, var2, .
  217.      . .], pt, ord) where each of pt and ord may be replaced by a list
  218.      which will correspond to the list of variables.  that is, the nth
  219.      items on each of the lists will be associated together.
  220.      TAYLOR(exp, [x,pt,ord,ASYMP]) will give an expansion of exp in
  221.      negative powers of (x-pt).  The highest order term will be
  222.      (x-pt)^(-ord).  The ASYMP is a syntactic device and not to be
  223.      assigned to.  See also the TAYLOR_LOGEXPAND switch for controlling
  224.      expansion.
  225.  
  226.  
  227.  - Variable: TAYLORDEPTH
  228.      default: [3] - If there are still no non-zero terms TAYLOR will
  229.      keep doubling the degree of the expansion of g(var) until reaching
  230.      pow*2**n where n is the value of the variable TAYLORDEPTH[3].
  231.  
  232.  
  233.  - Function: TAYLORINFO (exp)
  234.      returns FALSE if exp is not a Taylor series.  Otherwise, a list of
  235.      lists is returned describing the particulars of the Taylor
  236.      expansion.  For example,
  237.           (C3) TAYLOR((1-Y^2)/(1-X),X,0,3,[Y,A,INF]);
  238.                        2                        2
  239.           (D3)/R/ 1 - A  - 2 A (Y - A) - (Y - A)
  240.                               2                        2
  241.                       + (1 - A  - 2 A (Y - A) - (Y - A) ) X
  242.                    2                        2   2
  243.            + (1 - A  - 2 A (Y - A) - (Y - A) ) X
  244.                               2                        2   3
  245.                       + (1 - A  - 2 A (Y - A) - (Y - A) ) X
  246.                + . . .
  247.           (C4) TAYLORINFO(D3);
  248.           (D4)                       [[Y, A, INF], [X, 0, 3]]
  249.  
  250.  - Function: TAYLORP (exp)
  251.      a predicate function which returns TRUE if and only if the
  252.      expression 'exp' is in Taylor series representation.
  253.  
  254.  
  255.  - Variable: TAYLOR_LOGEXPAND
  256.      default: [TRUE] controls expansions of logarithms in TAYLOR
  257.      series.  When TRUE all log's are expanded fully so that
  258.      zero-recognition problems involving logarithmic identities do not
  259.      disturb the expansion process.  However, this scheme is not always
  260.      mathematically correct since it ignores branch information.  If
  261.      TAYLOR_LOGEXPAND is set to FALSE, then the only expansion of log's
  262.      that will occur is that necessary to obtain a formal power series.
  263.  
  264.  
  265.  - Variable: TAYLOR_ORDER_COEFFICIENTS
  266.      default: [TRUE] controls the ordering of coefficients in the
  267.      expression.  The default (TRUE) is that coefficients of taylor
  268.      series will be ordered canonically.
  269.  
  270.  
  271.  - Function: TAYLOR_SIMPLIFIER
  272.      - A function of one argument which TAYLOR uses to simplify
  273.      coefficients of power series.
  274.  
  275.  
  276.  - Variable: TAYLOR_TRUNCATE_POLYNOMIALS
  277.      default: [TRUE] When FALSE polynomials input to TAYLOR are
  278.      considered to have infinite precison; otherwise (the default) they
  279.      are truncated based upon the input truncation levels.
  280.  
  281.  
  282.  - Function: TAYTORAT (exp)
  283.      converts exp from TAYLOR form to CRE form, i.e. it is like
  284.      RAT(RATDISREP(exp)) although much faster.
  285.  
  286.  
  287.  - Function: TRUNC (exp)
  288.      causes exp which is in general representation to be displayed as
  289.      if its sums were truncated Taylor series.  E.g. compare
  290.      EXP1:X^2+X+1; with EXP2:TRUNC(X^2+X+1); .  Note that IS(EXP1=EXP2);
  291.      gives TRUE.
  292.  
  293.  
  294.  - Function: UNSUM (fun,n)
  295.      is the first backward difference fun(n) - fun(n-1).
  296.           (C1) G(P):=P*4^N/BINOMIAL(2*N,N);
  297.                                                       N
  298.                                                    P 4
  299.           (D1)                       G(P) := ----------------
  300.                                              BINOMIAL(2 N, N)
  301.           (C2) G(N^4);
  302.                                                4  N
  303.                                               N  4
  304.           (D2)                           ----------------
  305.                                          BINOMIAL(2 N, N)
  306.           (C3) NUSUM(D2,N,0,N);
  307.                                    4        3       2              N
  308.                     2 (N + 1) (63 N  + 112 N  + 18 N  - 22 N + 3) 4      2
  309.           (D3)      ------------------------------------------------ - ------
  310.                                   693 BINOMIAL(2 N, N)                 3 11 7
  311.           (C4) UNSUM(%,N);
  312.                                                4  N
  313.                                               N  4
  314.           (D4)                           ----------------
  315.                                          BINOMIAL(2 N, N)
  316.  
  317.  - Variable: VERBOSE
  318.      default: [FALSE] - if TRUE will cause comments about the progress
  319.      of POWERSERIES to be printed as the execution of it proceeds.
  320.  
  321.  
  322. 
  323. File: maxima.info,  Node: Number Theory,  Next: Symmetries,  Prev: Series,  Up: Top
  324.  
  325. Number Theory
  326. *************
  327.  
  328. * Menu:
  329.  
  330. * Definitions for Number Theory::
  331.  
  332. 
  333. File: maxima.info,  Node: Definitions for Number Theory,  Prev: Number Theory,  Up: Number Theory
  334.  
  335. Definitions for Number Theory
  336. =============================
  337.  
  338.  - Function: BERN (x)
  339.      gives the Xth Bernoulli number for integer X.  ZEROBERN[TRUE] if
  340.      set to FALSE excludes the zero BERNOULLI numbers.  (See also BURN).
  341.  
  342.  
  343.  - Function: BERNPOLY (v, n)
  344.      generates the nth Bernoulli polynomial in the variable v.
  345.  
  346.  
  347.  - Function: BFZETA (exp,n)
  348.      BFLOAT version of the Riemann Zeta function.  The 2nd argument is
  349.      how many digits to retain and return, it's a good idea to request
  350.      a couple of extra.  This function is available by doing
  351.      LOAD(BFFAC); .
  352.  
  353.  
  354.  - Function: BGZETA (S, FPPREC)
  355.      BGZETA is like BZETA, but avoids arithmetic overflow errors on
  356.      large arguments, is faster on medium size arguments (say S=55,
  357.      FPPREC=69), and is slightly slower on small arguments.  It may
  358.      eventually replace BZETA.  BGZETA is available by doing
  359.      LOAD(BFAC);.
  360.  
  361.  
  362.  - Function: BHZETA (S,H,FPPREC)
  363.      gives FPPREC digits of
  364.           SUM((K+H)^-S,K,0,INF)
  365.      This is available by doing LOAD(BFFAC);.
  366.  
  367.  
  368.  - Function: BINOMIAL (X, Y)
  369.      the binomial coefficient X*(X-1)*...*(X-Y+1)/Y!. If X and Y are
  370.      integers, then the numerical value of the binomial coefficient is
  371.      computed.  If Y, or the value X-Y, is an integer, the binomial
  372.      coefficient is expressed as a polynomial.
  373.  
  374.  
  375.  - Function: BURN (N)
  376.      is like BERN(N), but without computing all of the uncomputed
  377.      Bernoullis of smaller index.  So BURN works efficiently for large,
  378.      isolated N.  (BERN(402) takes about 645 secs vs 13.5 secs for
  379.      BURN(402).  BERN's time growth seems to be exponential, while
  380.      BURN's is about cubic.  But if next you do BERN(404), it only
  381.      takes 12 secs, since BERN remembers all in an array, whereas
  382.      BURN(404) will take maybe 14 secs or maybe 25, depending on
  383.      whether MACSYMA needs to BFLOAT a better value of %PI.)  BURN is
  384.      available by doing LOAD(BFFAC);.  BURN uses an observation of WGD
  385.      that (rational) Bernoulli numbers can be approximated by
  386.      (transcendental) zetas with tolerable efficiency.
  387.  
  388.  
  389.  - Function: BZETA
  390.      - This function is obsolete, see BFZETA.
  391.  
  392.  
  393.  - Function: CF (exp)
  394.      converts exp into a continued fraction.  exp is an expression
  395.      composed of arithmetic operators and lists which represent
  396.      continued fractions.  A continued fraction a+1/(b+1/(c+...)) is
  397.      represented by the list [a,b,c,...]. a,b,c,.. must be integers.
  398.      Exp may also involve SQRT(n) where n is an integer.  In this case
  399.      CF will give as many terms of the continued fraction as the value
  400.      of the variable CFLENGTH[1] times the period.  Thus the default is
  401.      to give one period.  (CF binds LISTARITH to FALSE so that it may
  402.      carry out its function.)
  403.  
  404.  
  405.  - Function: CFDISREP (list)
  406.      converts the continued fraction represented by list into general
  407.      representation.
  408.           (C1) CF([1,2,-3]+[1,-2,1]);
  409.           (D1)                 [1, 1, 1, 2]
  410.           (C2) CFDISREP(%);
  411.                                       1
  412.           (D2)                1 + ---------
  413.                                         1
  414.                                   1 + -----
  415.                                           1
  416.                                       1 + -
  417.                                           2
  418.  
  419.  - Function: CFEXPAND (x)
  420.      gives a matrix of the numerators and denominators of the
  421.      next-to-last and last convergents of the continued fraction x.
  422.           (C1) CF(SQRT(3));
  423.           (D1)                 [1, 1, 2, 1, 2, 1, 2, 1]
  424.           (C2) CFEXPAND(%);
  425.                                        [71  97]
  426.           (D2)                         [      ]
  427.                                        [41  56]
  428.           (C3) D2[1,2]/D2[2,2],NUMER;
  429.           (D3)                        1.7321429
  430.  
  431.  - Variable: CFLENGTH
  432.      default: [1] controls the number of terms of the continued
  433.      fraction the function CF will give, as the value CFLENGTH[1] times
  434.      the period.  Thus the default is to give one period.
  435.  
  436.  
  437.  - Function: CGAMMA
  438.      - The Gamma function in the complex plane.  Do LOAD(CGAMMA) to use
  439.      these functions.  Functions Cgamma, Cgamma2, and LogCgamma2.
  440.      These functions evaluate the Gamma function over the complex plane
  441.      using the algorithm of Kuki, CACM algorithm 421.  Calculations are
  442.      performed in single precision and the relative error is typically
  443.      around 1.0E-7; evaluation at one point costs less than 1 msec.  The
  444.      algorithm provides for an error estimate, but the Macsyma
  445.      implementation currently does not use it.  Cgamma is the general
  446.      function and may be called with a symbolic or numeric argument.
  447.      With symbolic arguments, it returns as is; with real floating or
  448.      rational arguments, it uses the Macsyma Gamma function; and for
  449.      complex numeric arguments, it uses the Kuki algorithm.  Cgamma2 of
  450.      two arguments, real and imaginary, is for numeric arguments only;
  451.      LogCgamma2 is the same, but the log-gamma function is calculated.
  452.      These two functions are somewhat more efficient.
  453.  
  454.  
  455.  - Function: CGAMMA2
  456.      - See CGAMMA.
  457.  
  458.  
  459.  - Function: DIVSUM (n,k)
  460.      adds up all the factors of n raised to the kth power.  If only one
  461.      argument is given then k is assumed to be 1.
  462.  
  463.  
  464.  - Function: EULER (X)
  465.      gives the Xth Euler number for integer X.  For the
  466.      Euler-Mascheroni constant, see %GAMMA.
  467.  
  468.  
  469.  - Function: FACTORIAL (X)
  470.      The factorial function.  FACTORIAL(X) = X! .  See also
  471.      MINFACTORIAL and FACTCOMB.  The factorial operator is !, and the
  472.      double factorial operator is !!.
  473.  
  474.  
  475.  - Function: FIB (X)
  476.      the Xth Fibonacci number with FIB(0)=0, FIB(1)=1, and
  477.      FIB(-N)=(-1)^(N+1) *FIB(N).  PREVFIB is FIB(X-1), the Fibonacci
  478.      number preceding the last one computed.
  479.  
  480.  
  481.  - Function: FIBTOPHI (exp)
  482.      converts FIB(n) to its closed form definition.  This involves the
  483.      constant %PHI (= (SQRT(5)+1)/2 = 1.618033989).  If you want the
  484.      Rational Function Package to know About %PHI do
  485.      TELLRAT(%PHI^2-%PHI-1)$  ALGEBRAIC:TRUE$ .
  486.  
  487.  
  488.  - Function: INRT (X,n)
  489.      takes two integer arguments, X and n, and returns the integer nth
  490.      root of the absolute value of X.
  491.  
  492.  
  493.  - Function: JACOBI (p,q)
  494.      is the Jacobi symbol of p and q.
  495.  
  496.  
  497.  - Function: LCM (exp1,exp2,...)
  498.      returns the Least Common Multiple of its arguments.  Do
  499.      LOAD(FUNCTS); to access this function.
  500.  
  501.  
  502.  - Variable: MAXPRIME
  503.      default: [489318] - the largest number which may be given to the
  504.      PRIME(n) command, which returns the nth prime.
  505.  
  506.  
  507.  - Function: MINFACTORIAL (exp)
  508.      examines exp for occurrences of two factorials which differ by an
  509.      integer.  It then turns one into a polynomial times the other.  If
  510.      exp involves binomial coefficients then they will be converted
  511.      into ratios of factorials.
  512.           (C1) N!/(N+1)!;
  513.                                               N!
  514.           (D1)                             --------
  515.                                            (N + 1)!
  516.           (C2) MINFACTORIAL(%);
  517.                                                1
  518.           (D2)                               -----
  519.                                              N + 1
  520.  
  521.  - Function: PARTFRAC (exp, var)
  522.      expands the expression exp in partial fractions with respect to
  523.      the main variable, var.  PARTFRAC does a complete partial fraction
  524.      decomposition.  The algorithm employed is based on the fact that
  525.      the denominators of the partial fraction expansion (the factors of
  526.      the original denominator) are relatively prime.  The numerators
  527.      can be written as linear combinations of denominators, and the
  528.      expansion falls out.  See EXAMPLE(PARTFRAC); for examples.
  529.  
  530.  
  531.  - Function: PRIME (n)
  532.      gives the nth prime. MAXPRIME[489318] is the largest number
  533.      accepted as argument.  Note:  The PRIME command does not work in
  534.      maxima, since it required a large file of primes, which most users
  535.      do not want.    PRIMEP does work however.
  536.  
  537.  
  538.  - Function: PRIMEP (n)
  539.      returns TRUE if n is a prime, FALSE if not.
  540.  
  541.  
  542.  - Function: QUNIT (n)
  543.      gives the principal unit of the real quadratic number field
  544.      SQRT(n) where n is an integer, i.e.  the element whose norm is
  545.      unity.  This amounts to solving Pell's equation A**2- n*B**2=1.
  546.           (C1) QUNIT(17);
  547.           (D1)              SQRT(17)+4
  548.           (C2)  EXPAND(%*(SQRT(17)-4));
  549.           (D2)               1
  550.  
  551.  - Function: TOTIENT (n)
  552.      is the number of integers less than or equal to n which are
  553.      relatively prime to n.
  554.  
  555.  
  556.  - Variable: ZEROBERN
  557.      default: [TRUE] - if set to FALSE excludes the zero BERNOULLI
  558.      numbers.  (See the BERN function.)
  559.  
  560.  
  561.  - Function: ZETA (X)
  562.      gives the Riemann zeta function for certain integer values of X.
  563.  
  564.  
  565.  - Variable: ZETA%PI
  566.      default: [TRUE] - if FALSE, suppresses ZETA(n) giving coeff*%PI^n
  567.      for n even.
  568.  
  569.  
  570. 
  571. File: maxima.info,  Node: Symmetries,  Next: Groups,  Prev: Number Theory,  Up: Top
  572.  
  573. Symmetries
  574. **********
  575.  
  576. * Menu:
  577.  
  578. * Definitions for Symmetries::
  579.  
  580.